Skip to content

Refactor: confine Saxon references to the deferred-loading configurer - #52

Merged
garydgregory merged 1 commit into
apache:mainfrom
ppkarwasz:refactor/saxon-provider-boundary
Aug 26, 2026
Merged

Refactor: confine Saxon references to the deferred-loading configurer#52
garydgregory merged 1 commit into
apache:mainfrom
ppkarwasz:refactor/saxon-provider-boundary

Conversation

@ppkarwasz

Copy link
Copy Markdown
Member

Move the EmptySource::getInstance reference into SaxonProviderConfigurer, so every Saxon symbolic reference lives in the nested class and the outer class verifies without Saxon on the classpath.

Drop the LinkageError guards in the two configure methods: a missing Saxon cannot reach them (the isSaxon gate guarantees a loaded Saxon-package class), and for an incompatible Saxon version letting the LinkageError propagate matches JAXP's own ConfigurationError convention.

Move the EmptySource::getInstance reference into SaxonProviderConfigurer,
so every Saxon symbolic reference lives in the nested class and the outer
class verifies without Saxon on the classpath; document that role on the
nested class.

Drop the LinkageError guards in the two configure methods: a missing
Saxon cannot reach them (the isSaxon gate guarantees a loaded
Saxon-package class), and for an incompatible Saxon version letting the
LinkageError propagate matches JAXP's own ConfigurationError convention.

Assisted-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Jvd3SdALeiMvRPBe3Y7Cdp
@ppkarwasz
ppkarwasz force-pushed the refactor/saxon-provider-boundary branch from 52ad8fb to 051ee9f Compare August 26, 2026 17:27
@garydgregory garydgregory changed the title refactor: confine Saxon references to the deferred-loading configurer Refactor: confine Saxon references to the deferred-loading configurer Aug 26, 2026
@garydgregory
garydgregory merged commit 678f64e into apache:main Aug 26, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants